#include "TaskQueue.hpp"
#include "ProducerThread.hpp"
#include "ConsumerThread.hpp"
#include <memory>

using std::unique_ptr;

int main()
{   
    pc::TaskQueue taskque(10);
    unique_ptr<pc::Thread> producer(new pc::ProducerThread(taskque));
    unique_ptr<pc::Thread> consumer(new pc::ConsumerThread(taskque));

    producer->start();
    consumer->start();


    producer->join();
    consumer->join();

    return 0;
}

